<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="/stylesheets/news.css">
    <link  style="width:16px; height=16px;" rel="shortcut icon" href="/static/new_ui/images/logo_s.png">
</head>
<body>
	<div class="container">
		<div class="box">
			<h1>新闻列表</h1>
			<div class="btnbox"><a href="/addNews" class="btn">添加新闻</a></div>
		</div>
		<div class="newinfo">
            <% if (articles.length != 0) { %>
            <% articles.forEach(function (article, index) { %>
            <p class="clearfix">
                <a href="javascript:;"><%= article.title %></a>
                <i class='time'><%= article.time.year %>-<%= article.time.month %>-<%= article.time.day %></i>
                <a class="act J_remove_one" href="/removeOneArticle/<%= article._id %>">删除</a>
                <a class="act" href="/updateArticle/<%= article._id %>">修改</a>
            </p>
            <% }) %>
            <% } else { %>
            <h3 class="text-center">您还未发布任何信息</h3>
            <% } %>
		</div>
	</div>

</body>
</html>